﻿#ifndef __NPERFORMANCE_HEADER__
#define __NPERFORMANCE_HEADER__


#include <Windows.h>


struct NCounter 
{
	void begin()
	{
		::QueryPerformanceCounter(&mBeginCounter);
	}

	void end()
	{
		::QueryPerformanceCounter(&mEndCounter);
	}

	int difference() { return (int)(mEndCounter.QuadPart - mBeginCounter.QuadPart); }
	
private:

	LARGE_INTEGER		mBeginCounter;
	LARGE_INTEGER		mEndCounter;
};


#define NCOUNTER			NCounter	




#endif // __NPERFORMANCE_HEADER__